package com.shop.cereshop.app.dao.order;

import com.shop.cereshop.app.page.cart.CartSku;
import com.shop.cereshop.app.page.order.OrderProductAttribute;
import com.shop.cereshop.commons.domain.order.CereOrderProductAttribute;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CereOrderProductAttributeDAO {
    int insert(CereOrderProductAttribute record);

    int insertSelective(CereOrderProductAttribute record);

    List<CereOrderProductAttribute> findBySkuId(@Param("skuId") Long skuId);

    void insertBatch(@Param("list") List<OrderProductAttribute> list);

    List<OrderProductAttribute> findBySkus(@Param("skus") List<CartSku> skus);
}